import request from '@/utils/request'


export function fetchUserList(params) {
    return request({
        url: '/admin/getUserList',
        method: 'get',
        params
    })
}

export function fetchUserAdd(data) {
    return request({
        url: '/user/add',
        method: 'post',
        data
    })
}

export function fetchUserUpd(params) {
    return request({
        url: '/user/upd',
        method: 'get',
        params
    })
}

export function fetchRoleList(params) {
    return request({
        url: '/role/list',
        method: 'get',
        params
    })
}


export default {
    fetchUserList,
    fetchUserAdd,
    fetchUserUpd,
    fetchRoleList
}